<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="com.msmall.base.util.ConstantDB" language="java"%>
<c:set var="UNVISIBLE" value="<%=ConstantDB.UNVISIBLE%>"></c:set>
<c:set var="VISIBLE" value="<%=ConstantDB.VISIBLE%>"></c:set>

<div class="spalistw730">
	<div class="spaw730nav">
		<p class="sHB00 fl">我的留言本</p>
	</div>
	<div class="spalisdiv">
		<c:if test="${fn:length(wordsList) > 0}">
			<c:forEach var="words" items="${wordsList}"  varStatus="status">
				<dl id="space_words_${words.wordsId}" class="spalistleav">
					<dt>
						<c:set var="avatarpath"><ms:user type="avatar" link="false" userid="${words.sender}" nickname="" style=""/></c:set>
						<img style="width:100px;height:100px;" src="${ctx}/${avatarpath}">
					</dt>
					<dd>
						<p class="spalistleavp">
							<span class="fl">
								<ms:user type="gnickname" link="true" userid="${words.sender}" style="lHc00"></ms:user>
								<c:if test="${words.visible == UNVISIBLE}">
									(悄悄的)
								</c:if>
								&nbsp;&nbsp;&nbsp;<fmt:formatDate value="${words.createTime}" pattern="yyyy-mm-dd :HH ss"/>
							</span>
							<span class="fr">
								<a class="lH00" id="a_space_words_reply" href="javascript:writeWords(${words.sender})">回复</a>
								<a class="lH00" href="javascript:removeWords(${words.wordsId})">删除</a>
							</span>
						</p>
						<p class="s666"><c:out value="${words.content}"/></p>
						<p></p>
					</dd>
					<p class="clear"></p>
				</dl>
			</c:forEach>
		</c:if>
		<c:if test="${fn:length(wordsList) <= 0}">
			<dl class="spalistleav">
				<dt>
					暂无留言
				</dt>
				<dd>
				</dd>
			</dl>
		</c:if>
	</div>
	<div class="pagediv martop10 tc">
	</div>
</div>
<tiles:insertDefinition name="html.space.content.right.owner">
	<tiles:putAttribute name="userInfo" value="${userInfo}"></tiles:putAttribute>
</tiles:insertDefinition>
